package jxta.chat.entities;

import java.util.HashMap;
import java.util.Map;

import jxta.chat.util.Constants.MessageParamsKeys;

/**
 * The class holds a map of all the parameters needed to create
 * a certain message
 */
public class MessageParams {

	private Map<MessageParamsKeys, Object> params = null;
	
	public MessageParams(String peerName){
		params = new HashMap<MessageParamsKeys, Object>();
		params.put(MessageParamsKeys.NAME, peerName);
	}

	public void addParameter(MessageParamsKeys key, Object value){
		params.put(key, value);
	}
	
	public Object getParameter(MessageParamsKeys key){
		return params.get(key);
	}
}
